//预览模式
import { Button as AntdButton } from 'antd';
import type { CommonComponentProps } from '../../editor/interface';

const Button = ({id, type, text, styles, ...props}: CommonComponentProps) => {
  return (
    <AntdButton 
    //   data-component-id={id}
      type={type} 
      style={styles}
      {...props}
    >
      {text}
    </AntdButton>
  )
}

export default Button;
